﻿#pragma once
// Copyright (c) lanyeo 2020-2021
// Licenced under MIT license. See https://opensource.org/licenses/MIT for details.
// code style
// 1. use forward declaration (尽可能使用前置声明)
// 2. include file sequence [other project>c>c++>third>self project]
//

#include <string>

enum BoxType
{
    BOX_TYPE_INVALID = 0,
    BOX_TYPE_LOBBY = 1,
    BOX_TYPE_TRANSMIT = 2,
    BOX_TYPE_GLOBAL = 3,
};

extern std::string __g_service_alias_name__;
extern std::string __g_service_real_name__;
extern uint16_t __g_service_listen_port__;
extern int __g_service_type__;
extern int __g_service_id__;

inline const std::string& service_alias_name()
{
    return __g_service_alias_name__;
}

inline const std::string& service_real_name()
{
    return __g_service_real_name__;
}

inline const uint16_t& service_listen_port()
{
    return __g_service_listen_port__;
}

inline const int& service_type()
{
    return __g_service_type__;
}

inline const int& service_id()
{
    return __g_service_id__;
}
